package com.knowledgeqa.system.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 金币交易记录实体类
 */
public class CoinTransaction implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;            // 交易ID
    private Long userId;        // 用户ID
    private Integer amount;     // 交易金额
    private Integer type;       // 交易类型：0充值，1发布悬赏扣款，2打赏，3其他
    private String remark;      // 交易备注
    private Date createTime;    // 交易时间

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}